<%@ page session="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<html>
<head>
<title>Detalle Stock</title>
</head>

<body>
	<h1>Detalle Stock</h1>


	<form:form modelAttribute="stock" action="#" method="post">

		<table>
			<tr>
				<td valign="top"><form:input type="hidden" path="id" />
					<table>
						<tr>
							<td align="left">Variedad:</td>
							<td align="left">${stock.variedad}</td>
						</tr>
						<tr>
							<td align="left">Color:</td>
							<td align="left">${stock.color}</td>
						</tr>
						<tr>
							<td align="left">Acidez:</td>
							<td align="left">${stock.acidez}</td>
						</tr>
						<tr>
							<td align="left">Alcohol:</td>
							<td align="left">${stock.alcohol}</td>
						</tr>
						<tr>
							<td align="left">Azucar:</td>
							<td align="left">${stock.azucar}</td>
						</tr>
						<tr>
							<td align="left">Edad:</td>
							<td align="left">${stock.edad}</td>
						</tr>
						<tr>
							<td align="left">Cantidad:</td>
							<td align="left">${stock.cantidad} L.</td>
						</tr>
						<tr>
							<td align="left">Precio:</td>
							<td align="left">$ ${stock.precio}</td>
						</tr>
						<tr>
							<td align="left">Registro INV:</td>
							<td align="left">#${stock.idINV}</td>
						</tr>
						<tr>
							<td align="left">Creado:</td>
							<td align="left"><fmt:formatDate
									value="${stock.fechaCreacionStock}" pattern="MM/dd/yyyy"
									timeZone="GMT" /></td>
						</tr>
						<tr>
							<td align="left">Vencimiento:</td>
							<td align="left"><fmt:formatDate
									value="${stock.vencimiento}" pattern="MM/dd/yyyy"
									timeZone="GMT" /></td>
						</tr>
						<tr>
							<td></td>
							<td><a href="stocks_modificar?id=${stock.id}"> <input type="button" value="Modificar"></a>
							<a href="javascript:history.back()"> <input type="button" value="Volver"></a></td>
						</tr>
					</table></td>

			</tr>
		</table>
	</form:form>
	------------------------------------------<br>
	<a href="home">inicio</a>

</body>
</html>
